package one_04_struct;

import java.util.Scanner;

public class demo04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入成绩：");
        float v = scanner.nextFloat();
        if (0<v & v<60){
            System.out.println("不及格");
        }else if (60<=v & 70>v){
            System.out.println("成绩为D");
        }else if (70<=v & 80>v){
            System.out.println("成绩为C");
        }else if (80<=v & 90>v){
            System.out.println("成绩为B");
        }else if (90<=v && 100>=v){
            System.out.println("成绩为A");
        }else {
            System.out.println("成绩输入错误");
        }
        scanner.close();
    }
}
